package com.ruoyi.web.controller.interview;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.interview.domain.InterviewQuestion;
import com.ruoyi.interview.service.IInterviewRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author huangjie
 * @date 2025/11/24
 */
@RestController
@RequestMapping("/interview/record")
public class InterviewRecordController {
    @Autowired
    private IInterviewRecordService  interviewRecordService;

    /**
     * 开始面试
     * @param recordId
     * @return
     */
    @GetMapping("/start")
    public AjaxResult startInterview(Long recordId){
        //开始面试得到问题列表
        List<InterviewQuestion> interviewQuestionList =interviewRecordService.start(recordId);
        return AjaxResult.success(interviewQuestionList);
    }


}
